# coding:utf-8

import os

current_path = os.getcwd()
print(current_path)

new_path = '%s/test1' % current_path
# os.makedirs(new_path)

data = os.listdir(current_path)
print(data)

new_path2 = '%s/test2/abc' % current_path
# os.makedirs(new_path2)
# os.makedirs('test3')

# os.removedirs('test2/abc')
# os.rename('test3','test3_new')
# os.rename('test123.py', 'test123456.py')

# os.rmdir('%s/test3_new' % current_path)
# os.rmdir('test1')  # OSError: [Errno 66] Directory not empty: 'test1'
